export interface oneConfigTypeInterface {
  isModalOpen: boolean
  form: any
  showModal: () => void
  handleCancel: () => void
  showModalExamine: (params: any) => void
}

export interface messageCenterContextType {
  oneConfigType: oneConfigTypeInterface
}

export interface pageType {
  pageIndex: number // 页码
  pageSize: number // 每页数量
  totalCount?: number // 订单总数
}

// 特别注意表格数据 ts
export interface tableInterface {
  id: number
  type: string
  title: string
  content: string
  senderId: number
  receiveId: string
  platformId: number
  createDate: string
  updateDate: string
  createUser: string
  updateUser: string
  isDeleted: boolean
  status: number
}

// 平台概况和操作指南 ts
export interface platformInstructions {
  id: number
  type: string
  content: string
  platformId: number
  status: number
  createDate: string
  updateDate: string
  createUser: null | unknown
  updateUser: null | unknown
  isDeleted: boolean
}

// hooks结构
export interface IMessage {
  pageParams: pageType
  handleChangePage: (page: number, pageSize?: number) => void
  examinePushRouter: (value: any) => void
  paySpecialAttentionToTableData: tableInterface[]
  changeTabs: (params: string) => void
  tabsActive: string
  platformInstructionsData: platformInstructions[]
}
